<h4>Catálogo de Perfiles </h4>

<% content_for :contenido_panel_derecho do %>  
  <div>
    <%= button_to 'Agregar Perfil', new_perfil_path, :method => :get, :class=> "btn btn-large btn-primary" %>
  </div>
<% end %>

<table class="table table-striped">
  <tr>
    <th>Perfil</th>
    <th>Descripcion</th>
    <th></th>
  </tr>

<% @perfiles.each do |perfil| %>
  <tr>
    <td><%= perfil.Perfil %></td>
    <td><%= perfil.Descripcion %></td>
    <td>
      <%= link_to edit_perfil_path(perfil), :rel => "tooltip", "data-placement" => "top", "data-original-title" => "Editar", :class => "btn btn-mini" do %>
          <i class="icon-pencil"></i>
      <% end %>
      <%= link_to perfil, :method => :delete, :data => { :confirm => '¿Seguro que desea eliminar el Perfil?' }, :rel => "nofollow", "data-placement" => "top", "data-original-title" => "Eliminar", :class => "btn btn-mini btn-danger"  do %>
          <i class="icon-trash icon-white"></i>
      <% end %>
    </td>
  </tr>
<% end %>
</table>


